package top.xiesen.testepolymorphic;

public class Animal {

	public void voice() {
		System.out.println("普通动物叫声");
	}
}

class Cat extends Animal {
	public void voice() {
		System.out.println("喵喵");
	}
	public void CatchaMouse(){
		System.out.println("抓老鼠");
	}
}

class Dog extends Animal {
	public void voice() {
		System.out.println("旺旺旺");
	}
	public void  seeDoor(){
		System.out.println("看门");
	}
}

class Pig extends Animal {
	public void voice() {
		System.out.println("哼哼哼");
	}
	
}

class Tigger extends Animal {
	public void voice() {
		System.out.println("Tigger voice");
	}
}